class AlarmEntity {
  int errCode;
  int page;
  int total;
  int pageSize;
  List<AlarmListBean> data;

  AlarmEntity({this.errCode, this.page, this.total, this.pageSize, this.data});

  AlarmEntity.fromJson(Map<String, dynamic> json) {
    this.errCode = json['errCode'];
    this.page = json['page'];
    this.total = json['total'];
    this.pageSize = json['pageSize'];
    this.data = (json['data'] as List) != null
        ? (json['data'] as List).map((i) => AlarmListBean.fromJson(i)).toList()
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errCode'] = this.errCode;
    data['page'] = this.page;
    data['total'] = this.total;
    data['pageSize'] = this.pageSize;
    data['data'] =
        this.data != null ? this.data.map((i) => i.toJson()).toList() : null;
    return data;
  }
}

class AlarmListBean {
  String jqlx;
  String bjsj;
  String fsdd;
  String jqms;
  String bjr;
  String bjdh;

  AlarmListBean({this.jqlx,this.bjsj, this.fsdd, this.jqms, this.bjr, this.bjdh});

  AlarmListBean.fromJson(Map<String, dynamic> json) {
    this.jqlx = json['jqlx'];
    this.bjsj = json['bjsj'];
    this.fsdd = json['fsdd'];
    this.jqms = json['jqms'];
    this.bjr = json['bjr'];
    this.bjdh = json['bjdh'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['jqlx'] = this.jqlx;
    data['bjsj'] = this.bjsj;
    data['fsdd'] = this.fsdd;
    data['jqms'] = this.jqms;
    data['bjr'] = this.bjr;
    data['bjdh'] = this.bjdh;
    return data;
  }
}
